import request from '@/utils/request'

export function getTempList(query) {
  return request({
    url: `/admin/game/lottery-crit/personal/template`,
    params: query
  })
}

export function getTempDetailList(id) {
  return request({
    url: `/admin/game/lottery-crit/personal/template/${id}/prize`,
  })
}

export function addTempPool(data) {
  return request({
    url: `/admin/game/lottery-crit/personal/template`,
    method: 'post',
    data
  })
}

export function editPoolGiftCount(id, data) {
  return request({
    url: `/admin/game/lottery-crit/personal/template/${id}/prize`,
    method: 'post',
    data
  })
}

